class CreateLoans < ActiveRecord::Migration
  def change
    create_table :loans do |t|
      
    t.integer :book_instance_id ,    :null => false
    t.integer   :user_id
    t.string    :status ,           :limit => 30
    t.timestamp :loan_date,                      :null => false
    t.datetime  :return_date
    
      t.timestamps
    end
  end
end

